<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>

<body>
<h2>文本和多文件上传，访问路径如下</h2>
<h2>http://localhost:8080/upTextandImg.html</h2>

<form action="/upTextandImg" method="post" enctype="multipart/form-data">
    <a>宠物（或产品）类型：</a>
    <select id="categoryID" name="cid">
        <option value="1">11</option>
        <option value="2">22</option>
        <option value="3">33</option>
    </select>
    <br/>
    <br/>
    <a>宠物（或产品）名字：</a><input type="text" name="cname"><br/><br/>
    <a>一句话介绍：</a><input type="text" name="introduction"><br/><br/>
    <a>题目：</a><input type="text" name="title"><br/><br/>
    <a>价钱：</a><input type="text" name="price"><br/><br/>
    <a>库存：</a><input type="text" name="stock"><br/><br/>
    <a>状态：</a>
    <select name="status">
        <option value="1">在售</option>
        <option value="2">下架</option>
        <option value="3">删除</option>
    </select>

    <br/><br/>
    <a>文件1:</a><input type="file" onchange="previewFile()" name="fileName1">
    <a>文件2:</a><input type="file" onchange="previewFile()" name="fileName2">
    <a>文件3:</a><input type="file" onchange="previewFile()" name="fileName3">
    <br/>
    <div id="editor">
        <p>商品详细描述</p>
        <input type="text" name="details" id="detail">
    </div>
    <br/><br/>
    <input type="submit" value="新增商品">
</form>
</body>
</html>
